package cn.wolfcode.crm.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;
/*会员*/
@Setter
@Getter
public class Client {
    private Long id;

    private String number;//卡号

    private String name;

    private String password;

    private String level;//等级

    private String sex;

    private String tel;

    private String email;

    private String address;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT-8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date birthday;

    private BigDecimal balance;//账户金额

    private Integer integral;//积分

    private Boolean status;//挂失状态

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT-8")
    private Date endTime;//过期时间


}